function CaballoMar::onLevelLoaded(%this, %scenegraph)
{
	$CaballoMarVar = %this;
	moveMap.bindCmd(keyboard, "w", "", "functionGoUp();");
	moveMap.bindCmd(keyboard, "a", "", "functionGoLeft();");
	moveMap.bindCmd(keyboard, "d", "", "functionGoRight();");
	moveMap.bindCmd(keyboard, "s", "", "functionGoDown();");
}

function functionGoUp()
{
	$CaballoMarVar.setPositionY($CaballoMarVar.getPositionY()-1);
}

function functionGoLeft(){
	$CaballoMarVar.setPositionX($CaballoMarVar.getPositionX()-1);
}

function functionGoRight(){
	$CaballoMarVar.setPositionX($CaballoMarVar.getPositionX()+1);
}

function functionGoDown(){
	$CaballoMarVar.setPositionY($CaballoMarVar.getPositionY()+1);
}